Skip to main content
Glama
route.tsx1.08 kB
import { generateOGImage } from "fumadocs-ui/og"; import { generateOgImageStaticParams, generateOGImageMetadata, } from "@repo/fumadocs-blog/blog"; import { blogConstants, getCategoryBySlug, getSeriesBySlug, } from "@/blog-configuration"; import { blogSource, getBlogPosts } from "@/lib/source"; export const contentType = "image/png"; export const dynamic = "force-static"; export async function GET( req: Request, { params }: { params: Promise<{ slug?: string[] }> } ) { const resolvedParams = await params; console.log("resolvedParams", resolvedParams); const metadata = generateOGImageMetadata(resolvedParams, { blogConstants, getCategoryBySlug, getSeriesBySlug, blogSource, }); return generateOGImage({ title: metadata.title, description: metadata.description, site: "julianshuke.top", }); } export async function generateStaticParams() { const posts = getBlogPosts(); const imageRoutes = await generateOgImageStaticParams(blogSource, posts); console.log("imageRoutes", imageRoutes); return imageRoutes; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metacode0602/open-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server